package original;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: fzykd
 * Date: 2023-04-10
 * Time: 16:39
 */

public abstract class AbstractHouse {
    //一个抽象的改房子的方法

    //打地基
    public abstract void buildBasic();
    //砌墙
    public abstract void buildWalls();
    //封顶
    public abstract void rooted();

    //这三个方法使用顺序的 单独写在一个方法当中
    public void build(){
        buildBasic();
        buildWalls();
        rooted();
    }

}
